package <%=beanInfo.package%>.entity;
import <%=beanInfo.package%>.core.jdbc.annotation.Id;
import <%=beanInfo.package%>.core.jdbc.annotation.PK;
import <%=beanInfo.package%>.core.jdbc.annotation.Table;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

/**
* Created with ruby.
* User:
* Date: 13-3-11
*/
@Table("<%=beanInfo.tablename%>")
public class <%=beanInfo.classname%> implements Serializable {

    @PK
    @Id
    private Long id;

    <% beanInfo.properties.each do |k,v|%>
    private <%=v.gsub(/Big/,"")%> <%=k%>;
    <% end%>

    public Long getId() {
    return id;
    }

    public void setId(Long id) {
    this.id = id;
    }

    <% beanInfo.properties.each do |k,v|%>
    public <%=v.gsub(/Big/,"")%> get<%=k.gsub(/\b\w/) { $&.upcase } %>() {
        return <%=k%>;
    }

    public void set<%=k.gsub(/\b\w/) { $&.upcase } %>(<%=v.gsub(/Big/,"")%> <%=k%>) {
        this.<%=k%> = <%=k%>;
    }
    <% end%>



}
